import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class UserProvider with ChangeNotifier, DiagnosticableTreeMixin {
  var name;
  var age;

  UserProvider(this.name, this.age);

  void setName(String name) {
    this.name = name;
    notifyListeners();
  }

  String get getName => this.name;

//  void change() {
//    _themeMode = (_themeMode == ThemeMode.dark ? ThemeMode.light : ThemeMode.dark);
//    notifyListeners();
//  }

  /// Makes `Counter` readable inside the devtools by listing all of its properties
//  @override
//  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
//    super.debugFillProperties(properties);
//    properties.add(IntProperty('themeMode', themeMode));
//  }
}